﻿package com.syxp.pda.entity.base;

import java.util.HashSet;
import java.util.Set;

import com.syxp.pda.entity.system.Role;

/**
 * version: 1.0
 * 
 * date: 2011.07.12
 * 
 * author mengqingxin
 *
 */
public class User {

	private int userID ;//人员编号
	
	private String operatorCode ;//操作人员工号
	
	private String userName ;//人员名称
	
	private String userAccount ;//登录账号
	
	private String passWord ;//登录密码
	
	private String remarks ;//备注

	//EL_CHKLine（巡检路线表）与EL_User(用户表)：多对多（通过EL_User_Line体现）
	private Set<CHKLine> chkLines ;
	
	//EL_User(用户表)与EL_Station(岗位表)：   多对一
	private Station station ;
	
	//EL_User(用户表)与EL_Profess(专业信息表)：多对一
	private Profess profess ;
	
	//EL_User(用户表)与EL_Department（部门表）：一对多
	private Department department ;
	
	//EL_User(用户表)与EL_Role（权限控制表）：多对多（通过EL_Role_User表体现出来）
	private Set<Role> roles = new HashSet<Role>();
	
	//EL_User(用户表)与EL_Duty（值次表）：多对多（通过EL_DutyUser表体现出来）
	private Set<Duty> dutys = new HashSet<Duty>();
	
	
	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Profess getProfess() {
		return profess;
	}

	public void setProfess(Profess profess) {
		this.profess = profess;
	}

	public Station getStation() {
		return station;
	}

	public void setStation(Station station) {
		this.station = station;
	}

	public Set<CHKLine> getChkLines() {
		return chkLines;
	}

	public void setChkLines(Set<CHKLine> chkLines) {
		this.chkLines = chkLines;
	}

	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	public String getOperatorCode() {
		return operatorCode;
	}

	public void setOperatorCode(String operatorCode) {
		this.operatorCode = operatorCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Set<Duty> getDutys() {
		return dutys;
	}
	
	public void setDutys(Set<Duty> dutys) {
		this.dutys = dutys;
	}
	
	
	
}
